{% extends 'base.html' %}
{% block title %}问题报告{% endblock %}
{% block main_content %}
    <div class="row">
        <div class="panel panel-default">
            <div class="panel-heading">
            </div>
            <div class="panel-body ">
                <form action="/post_feedback/" enctype="multipart/form-data" method="post" class="form-horizontal">
                    <div class="form-group">
                        <label for="subject" class="control-label col-md-2 " >主题</label>
                        <div class="col-md-6" >
                            <input type="text" class="form-control" id="subject" name="subject">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="category" class="control-label col-md-2">分类</label>
                        <div class="col-md-2">
                            <select name="category" id="category" class="form-control">
                                {% for category in categorys %}
                                    <option value="{{ category['rowid'] }}">{{category['CategoryName']}}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="username" class="control-label col-md-2 " >姓名</label>
                        <div class="col-md-2" >
                            <input type="text" class="form-control" id="username" name="username">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="email" class="control-label col-md-2 " >邮箱</label>
                        <div class="col-md-6" >
                            <input type="text" class="form-control" id="email" name="email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="image" class="control-label col-md-2 " >图片</label>
                        <div class="col-md-6" >
                            <input type="file"  id="up_image" name="up_image">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="body" class="control-label col-md-2 ">问题描述</label>
                        <div class="col-md-6">
                            <textarea class="form-control" cols="30" rows="10" id="body" name="body"></textarea>
                        </div>
                    </div>
                    <div class="col-md-offset-3">
                        <input type="submit" class="btn btn-primary" value="提交">
                        <input type="reset" class="btn btn-default" value="重置">
                    </div>

                </form>
            </div>
            <div class="panel-footer  "></div>
        </div>

    </div>
{% endblock %}
